
export function initGL(){
    let canvas = document.getElementById('canvas')

    let gl = canvas.getContext('webgl')
    // console.log('canvas',canvas)
    // console.log('gl',gl)

    if(!gl){
        throw 'gl initialize fail'
    }

    return gl
}